import tenantApi from "@/api/declaration/tenantApi"
import httpRequest from "@/config/axios/httpRequest"
import { TenantPackageModel } from "@/models/tenant/TenantModel"




// 查询租户套餐列表
export const getTenantPackagePage = (params: PageParam) => {
  return httpRequest.get(tenantApi.GetTenantPackagePage, { params })
}

// 获得租户
export const getTenantPackage = (id: number) => {
  return httpRequest.get(tenantApi.GetTenantPackage,{params:{id}})
}

// 新增租户套餐
export const createTenantPackage = (data: TenantPackageModel) => {
  return httpRequest.post(tenantApi.CreateTenantPackage, data)
}

// 修改租户套餐
export const updateTenantPackage = (data: TenantPackageModel) => {
  return httpRequest.put(tenantApi.UpdateTenantPackage, data)
}

// 删除租户套餐
export const deleteTenantPackage = (id: number) => {
  return httpRequest.delete(tenantApi.DeleteTenantPackage, { params: { id } })
}
// 获取租户套餐精简信息列表
export const getTenantPackageList = () => {
  return httpRequest.get(tenantApi.GetTenantPackageList)
}
